package com.datang.litejvm.clz;


/**
 * @author: 顶风少年
 * @Description: 字段
 * @date: 11:32 2022/6/12
 **/
public class Field {
    private FieldAccessFlag fieldAccessFlag;
    private int nameIndex;
    private int descriptorIndex;
    private int attributeCount;
    private Object attribute;


    public Field(FieldAccessFlag fieldAccessFlag, int nameIndex, int descriptorIndex, int attributeCount) {
        this.fieldAccessFlag = fieldAccessFlag;
        this.nameIndex = nameIndex;
        this.descriptorIndex = descriptorIndex;
        this.attributeCount = attributeCount;
    }

    public FieldAccessFlag getFieldAccessFlag() {
        return fieldAccessFlag;
    }

    public int getNameIndex() {
        return nameIndex;
    }

    public int getDescriptorIndex() {
        return descriptorIndex;
    }

    public int getAttributeCount() {
        return attributeCount;
    }

    public Object getAttribute() {
        return attribute;
    }
}
